package com.ali.springcloud.alibaba.servic;

import com.ali.springcloud.entities.CommonResult;
import com.ali.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author ：ALi
 * @date ：Created in 2022/7/9 15:11
 * @description：
 * @modified By：
 * @version: $
 */
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444, "服务降级返回,---PaymentFallbackService", new Payment(id, "errorSerial"));
    }
}